#ifndef _GOOMBA_H_
#define _GOOMBA_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "CGame.h"
#include "Object.h"
#include "Global.h"
#include "Texture.h"

#define GOOMBA_VX 0.1
#define GOOMBA_GRAVITY 0.01

class Goomba : public Object
{
public:
	bool _checkTurn;
	bool _isGravity;
	float _vx;
	float _vy;
	float _xPre;
	float _yPre;
	Texture * _texture;
	int _timeDie;

public:
	Goomba(int id, float x, float y, int type, int state,int direction);
	//Goomba(int id, float x, float y);
	~Goomba(void);
	void Render(int vpX, int vpY);
	void Update(list<Object *> *_list, float time);
	void Move(list<Object*>* _list, float time);
	void TurnLeft();
	void TurnRight();
	void changeState(int state);
	OBJECT_TYPE getObjectType();
};

#endif